package com.hzhc.enumBean;

import java.util.stream.Stream;

/**
 * 业务code
 */
public enum LoginUserType {

    USER("user","后台用户"),
    MEMBER("member","客户账户");

    private String code;

    private String name;

    LoginUserType(String code, String name) {
        this.code = code;
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }
    public static Stream<LoginUserType> stream() {
        return Stream.of(LoginUserType.values());
    }
}